import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import main from '@/components/main.vue'
import main01 from '@/components/main01.vue'

import main_children from './main_router.js'

Vue.use(Router)

var router = new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      redirect:'main'
    },
    {
      path:'/main',
      name:'main',
      component:main,
      children:main_children()
    },
    {
      path:'/main01',
      name:'main01',
      component:main01
    }
  ]
})


export default router